#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(int argc,char* argv[])
{
    if(argc!=4)
    {
        printf("输入非法，请使用add sub mul div\n");
        return 1;
    }
    int left = atoi(argv[2]);
    int right = atoi(argv[3]);
    if(strcmp(argv[1],"-add")==0)
        printf("add=%d\n",left+right);
    else if(strcmp(argv[1],"-sub")==0)
        printf("sub=%d\n",left-right);
    else if(strcmp(argv[1],"-mul")==0)
        printf("add=%d\n",left*right);
    else if(strcmp(argv[1],"-div")==0&&right!=0)
        printf("div=%d\n",left/right);
    

    return 0;
}
